package com.ruoyi.media.mpQrcodeData.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 微信群二维码数据业务对象 media_mp_qrcode_data
 *
 * @author dqw
 * @date 2023-04-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MediaMpQrcodeDataBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 部门id
     */
    //@NotNull(message = "部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 用户id
     */
    //@NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 链接内容
     */
    @NotBlank(message = "链接内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String link;

    /**
     * 二维码更新时间
     */
    //@NotNull(message = "二维码更新时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date qrCodeUpdateTime;

    /**
     * 关联链接id
     */
    @NotBlank(message = "关联链接id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String linkId;

    /**
     * 备注
     */
    //@NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;
    /**
     * 是否使用
     */
    private Integer isUse;


}
